#include "settingsdialog.h"
#include "ui_settingsdialog.h"

SettingsDialog::SettingsDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::SettingsDialog)
{
    ui->setupUi(this);
    setWindowFlags(Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint);
    connect(this,SIGNAL(accepted()),this,SLOT(accepted()));
}

SettingsDialog::~SettingsDialog()
{
    delete ui;
}

void SettingsDialog::accepted()
{
    this->setScore = ui->scoreCheck->isChecked();
    this->setPenalty = ui->penaltyCheck->isChecked();
    this->score = ui->scoreBox->value();
    this->penalty = ui->penaltyBox->value();
}
